<style>

    #form
    {
        position: fixed;
        left: 20%;
        top: 20%;
    }

    #solo
    {
        position: relative;
        left: 20%;
        top: 3%;
    }

</style>

<div id="form">
    <h3>Available rooms in interval <?php echo $startdate . ' to ' . $enddate?></h3>

    <table style="width:100%; text-align: center">
        <tr>
            <th>Location</th>
            <th>Floor</th>
            <th>Rooms</th>
            <th>Orientation</th>
            <th>Air Conditioning</th>
            <th>Tv Setup</th>
            <th>Minibar</th>
        </tr>
        <?php foreach ($result  as $row) : ?>
        <?php echo '<tr><form action="../Secure_Room/get_data" method="post"\'>' .
                '<input type ="hidden" name="roomId" value="' . $row['id'] . '"/>' . ' ' .
                '<input type ="hidden" name="startdate" value="' . $startdate . '"/>' . ' ' .
                '<input type ="hidden" name="enddate" value="' . $enddate . '"/>' . ' ' .
                '<td>' . $row['location'] . '</td>' .
                '<td>' . $row['floor'] . '</td>' .
                '<td>' . $row['roomcount'] . '</td>' .
                '<td>' . $row['orientation'] . '</td>' .
                '<td>' . $row['aircond'] . '</td>' .
                '<td>' . $row['tv'] . '</td>' .
                '<td>' . $row['minibar'] . '</td>' .
                '<td><input type=\'submit\' value=\'Get this room\'><td/></form></tr>'?>
        <?php endforeach?>
    </table>
</div>
</body>

</html>